package edu.tgc.web.controller.file;

import org.abyss.dictionary.controller.AbstractDictionaryEasyUiController;
import org.abyss.dictionary.service.DictionaryEasyUiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping(value = "file/dic")
public class FileDictionaryController extends AbstractDictionaryEasyUiController {

    @Autowired
    protected DictionaryEasyUiService dictionaryService;

    @Override
    public String getCreateView() {
        return "dic/create";
    }

    @Override
    public DictionaryEasyUiService getDictionaryService() {
        return this.dictionaryService;
    }

    @Override
    protected String getEntityName(String entityName) {
        return "edu.tgc.entity.file.dictionary.File" + entityName.substring(0, 1).toUpperCase() + entityName.substring(1);
    }

    @Override
    public String getManageView() {
        return "dic/manage";
    }

    @Override
    public String getUpdateView() {
        return "dic/update";
    }

}
